/*
 * Copyright (c) 2024. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.neusoft.tyut.myspring.entity;

import lombok.ToString;

import java.util.Date;

@ToString
public class Dog {

    private String name;

    private Date birthday = new Date();

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    private int age;

    public Dog(int age) {
        this(age, "Bsuh");
        System.out.println("Dog.Dog    11111111111111111111111111");
    }

    public Dog(int age, String name) {
        System.out.println("Dog.Dog    ----------------------");
        this.age = age;
        this.name = name;
    }

    public Dog(String name, int age) {
        System.out.println("===============================");
        this.age = age;
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        System.out.println("Dog.setName");
        this.name = name;
    }

    public Dog(String name) {
        System.out.println("Dog.Dog");
        this.name = name;
    }

    public Dog() {
        this.name = name;
    }

    public void sayHi() {
        System.out.println("Dog.sayHi");
        ;
    }
}
